<%@ Control Language="C#"  %>
<%@ Register Assembly="Swaf.Gui.AspNet2" Namespace="Swaf.Gui.AspNet2" TagPrefix="swf" %>
<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>
<%@ Register Assembly="Syrinx.Gui.AspNet.NitobiCtls" Namespace="Syrinx.Gui.AspNet.NitobiCtls" TagPrefix="nit" %>
<div class="<%= styleClass(table) %>">
	<table width="100%">
		<tr><td colspan="2">
			<asp:Label ID="_baseTitleLbl" runat="server" Text="Title:" />
			<asp:TextBox ID="baseTitle" runat="server" Width="90%" MaxLength="150" ></asp:TextBox>
		</td></tr>
		<tr>
		<td>
			<swf:DivLayers runat="server" NumLayers="9" CssClass="FormContentArea1" ID="d0">
				<asp:Image ID="primaryPicture_name" runat="server" ImageUrl="$mediaCacheName$/SmallMedium/$primaryPicture.name$" EnableViewState="false"/><br />
			</swf:DivLayers>
		</td>
		<td width="70%">
			<swf:DivLayers runat="server" NumLayers="9" CssClass="FormContentArea2" ID="d1">
				<table width="100%">
					<tr>
						<td><asp:Label ID="_uniqueTitleLbl" runat="server"  Text="Unique Title:"/></td>
						<td><asp:TextBox ID="uniqueTitle" Width="90%" runat="server" MaxLength="150" ></asp:TextBox></td>
					</tr>
					<tr>
						<td><asp:Label ID="_childOfLbl" runat="server" Text="Child Of:" /></td>
						<td width="100%">
							<nit:NitobiComboBoxBizObjListDisplay id="parentId" runat="server" DataSourceBizRule="getAllCompanyArticlesForParent" TextBoxWidth="149px" ListWidth="300px" LiveScroll="False">
								<columns>
									<Column field="id" /><Column field="title" />
								</columns>
							</nit:NitobiComboBoxBizObjListDisplay>
						</td>
					</tr>
					<tr>
						<td><asp:Label ID="_metaTypeLbl" runat="server"  Text="Type:"/></td>
						<td>
							<nit:NitobiComboBoxBizObjListDisplay id="metaType" runat="server" DataSourceBizRule="getArticleTypes" TextBoxWidth="149px" ListWidth="300px" LiveScroll="False">
								<columns>
									<Column field="id" /><Column field="name" />
								</columns>
							</nit:NitobiComboBoxBizObjListDisplay>
						</td>
					</tr>
					<tr>
						<td><asp:Label ID="_keywordLbl" runat="server"  Text="Keywords:"/></td>
						<td><asp:TextBox ID="keyword" runat="server" Width="90%"  MaxLength="250" ToolTip="Comma delimeted text value" /></td>
					</tr>
					<tr><td colspan="2">
						<asp:Label ID="_pictureCaptionLbl" runat="server" Text="Picture Caption:" /><br />
						<asp:TextBox ID="primaryPicture_caption" runat="server" TextMode="MultiLine" Width="90%" onkeypress="if(this.value.length >=250)return false;"  ></asp:TextBox>		
					</td></tr>
				</table>
			</swf:DivLayers>
		</td></tr>
		<tr>
		    <td colspan="2">
				<swf:DivLayers runat="server" NumLayers="9" CssClass="FormContentArea3" ID="d2">
					<asp:Label ID="_summaryLbl" runat="server" Text="Article Summary:"  /><br />
					<asp:TextBox ID="baseSummary" runat="server" BackColor="Transparent" Height="50px" Width="95%" onkeypress="if(this.value.length >=1250)return false;" onchange="if(this.value.length >=1250){this.value = this.value.substr(0,1250);alert('You have pasted over 1250 charaters into the article summary.  It will be truncated to the 1250 character limit.')};" TextMode="MultiLine" /><br />
					<asp:Label ID="_bodyLbl" runat="server" Text="Main Article Content:" />
					<div id='sizearea' style="width:95%;height:300px;" onmousedown='start(this)'>
					<FTB:FreeTextBox ID="baseBody" runat="server" StartMode="DesignMode" BackColor="Transparent" Height="220px" Width="100%"></FTB:FreeTextBox>
					</div>
				</swf:DivLayers>
			</td>
		</tr>
	</table>		
</div>


